package org.com.structuralPattern.flyweightPattern;

/**
 * @author Jonny
 * @version 1.0
 * @Description:
 * @date 2021/4/15 15:09
 */
public class Game {
    public static void main(String[] args) {
        Chesspiece p1=ChesspieceFactory.getChesspiece("黑");
        p1.put(1,1);
        Chesspiece p2=ChesspieceFactory.getChesspiece("白");
        p2.put(2,2);
        Chesspiece p3=ChesspieceFactory.getChesspiece("黑");
        p3.put(3,3);
        Chesspiece p4=ChesspieceFactory.getChesspiece("白");
        p4.put(4,4);
    }
}
